﻿using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Heima.OA.Common
{
    public class Log4netWriter : ILogWriter
    {
        public void WriterLogInfo(string txt)
        {
            ILog logWriter = log4net.LogManager.GetLogger("Sys");
            logWriter.Error(txt);
        }
        /// <summary>
        /// 记录Info 等级的日志
        /// </summary>
        /// <param name="txt"></param>
        public void WriterInfoLog(string txt)
        {
            ILog logWriter = log4net.LogManager.GetLogger("syncLogger");
            logWriter.Info(txt);
        }


    }
}
